onLoad ('APC', {
	Options: {
		alt_autoscale: true,
	},
	Defs: {
		v: {rrd: "moa_apc-linev",   field: "data", CF: "AVERAGE"},
		l: {rrd: "moa_apc-loadpct", field: "data", CF: "AVERAGE"},
	},
	VDefs: {
		vmax: "v,MAXIMUM",
		vmin: "v,MINIMUM",
		lmax: "l,MAXIMUM",
		lmin: "l,MINIMUM",
	},
	CDefs: {
		l2v: "l,vmax,vmin,-,*,100,/,vmin,+",
	},
	Plot: {
		l2v:  {type: "LINE1", colour: "88FF00", name: "APC load"},
		lmin: {type: "GPRINT", text: "(min %.0lf%%"},
		lmax: {type: "GPRINT", text: "max %.0lf%%)"},
		v:    {type: "LINE1", colour: "FF8800", name: "Line (V)"},
	},
})
